package com.boilerCloud.service.device.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.boilerCloud.dao.device.ModeCodeDao;
import com.boilerCloud.dto.HzlqswPage;
import com.boilerCloud.dto.device.ModelCode;
import com.boilerCloud.service.device.IModelCodeService;
@Service
public class ModelCodeServiceImpl implements IModelCodeService {

	@Resource
	private ModeCodeDao dao;
	@Override
	public void qryList(ModelCode model, HzlqswPage<ModelCode> page)throws Exception {
		dao.qryList(model,page);
		
	}

	@Override
	public void edit(ModelCode model)throws Exception {
		// TODO Auto-generated method stub
		dao.edit(model);
	}

	@Override
	public void del(int id)throws Exception {
		dao.del(id);
		
	}

	@Override
	public void save(ModelCode model) throws Exception{
		dao.save(model);
		
	}

	@Override
	public List<ModelCode> getModelCodeList(ModelCode code) throws Exception {
		
		return dao.getModelCodeList(code);
	}

	@Override
	public ModelCode getModelCode(int id) throws Exception {
		return dao.getModelCode(id);
	}

}
